import java.net.*;
import java.io.*;

public class Mitarbeiter implements Serializable
{
	private String name,
				   surname;
	private Geschaeftsstelle gs;
	
	public Mitarbeiter(Geschaeftsstelle gs, String name, String surname)
	{
		this.name = name;
		this.surname = surname;
		int i=0;
		
		while(gs.mitarbeiter[i] != null)
		{
			i++;
		}
		gs.mitarbeiter[i] = this;
		// returni(i);
		
	}
	
	public String getName()
	{
		return name;
	}
	
	public int returni(int i)
	{
		return i;
	}
	
	public String getSurname()
	{
		return surname;
	}

	public void changeName(String name, String surname)
	{
		this.name = name;
		this.surname = surname;	
	}
	
}

